// pages/show/show.js
const app = getApp()
Page({
    data: {
        leftList: [],
        rightList: []
    },
    onLoad: function (options) {
        this.getShowList()
    },
    getShowList() {
        app.get('/show/list').then(res => {
            console.log(res.data);
            let list = res.data
            let leftList = list.filter((item, index) => index % 2 === 0)
            let rightList = list.filter((item, index) => index % 2 !== 0)
            this.setData({
                leftList:leftList,
                rightList:rightList
            })
        }).catch(err => {

        })
    }
})